Repository navigation
Read the Malaysian honours Datuk, Dato', Datin and Hajah as titles, and Tun, Haji, Tan Sri and Puan Sri under locales.MS - #1514
Merged
Conversation
…nd Tun, Haji, Tan Sri and Puan Sri under locales.MS (#1180) Datuk, Dato' (with either apostrophe), Datin and Hajah are titles by default in ms.toml, each addressing the given name as Sir does (rules/H1). Tun, Haji, the bare Dato and the phrases Tan Sri and Puan Sri are titles written default = false, which locales.MS turns on: each word is a name elsewhere. Tan and Sri get given readings in mul.toml, so each title is gated (rules/H9) and read only in its phrase. The build refused a phrase whose two halves are both off by default. Its attaches check now admits a partner whose title reading is off by default in the reading's own file, where the reading is off by default too, and still refuses a partner with no title reading or one another file's choice turns on (decisions/vocabulary-model, 2026-11-21 #1180). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d the records (#1180) The decisions entry read the default's my-candidates moves as all right; it now says which words behind an honour are still not the given name and that rules/P12's abdul loses a word to the peel. Under the pack it records the given name Tun and Haji, a style before Tan or Sri (Hon. Tan Ah Kow), and the phrase cut short, and reads the Companies House Haji records as the box-scoring artifact #1469 found. Its breakdowns now add up. The build check gets mutation rows for a partner with only a name reading in the file, a partner off by default beside a reading on by default, and the kind-name branch, a test of the admitted case under a choice, and the file hint on the kind-name branch too. Case rows pin the accepted costs, the comma shapes and the spellings; locale tests pin both family-first orders and the other choices. The #1179 and #1180 release bullets are one; indic-honorifics records haji under the pack; the rules corpus and snapshot take the new H1 example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…note and the release bullet (#1180) indic-honorifics' new line said the #1469 strict-choice bullet no longer held under MS; that bullet is about qari, moulana, alhaj and alhajj, which still read as given names there, and only haji, which it left out of every choice, moved. ORCID's changed records hold 7 given names Tun, not 6; PatentsView's three more are recorded. The Hon. Tan cost is the pack's own, only Hon. Sri being option A's. The style claim names the five corpora read. The merged release bullet keeps the Sri and Seri limit and one example. A case note compared Tan Sri with Field Marshal the wrong way, and three names from private records are replaced with invented ones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to #1180 (the issue stays open for the shapes left out, below).
What changes
Datuk,Dato',Dato’(typographic apostrophe),DatinnobilityHajahreligiousTun, the bareDatonobility,default = falselocales.MSHajireligious,default = falselocales.MSTan Sri,Puan Srilocales.MSEach addresses the given name, as
Sirdoes (rules/H1):parse("Datuk Ahmad bin Ali")gives title 'Datuk', given 'Ahmad', where 1.4.0 through 3.1.0 gave given 'Datuk', middle 'Ahmad'.The phrases.
tanandsrigetgivenreadings in mul.toml, which gates their titles in ms.toml, so each is a title only in its phrase.tanandpuanattach tosri. Alone, under the pack,Tan Chee Chaikeeps given 'Tan' and reportstitle-or-name; by default nothing moves and nothing is reported.The build check (decided 2026-11-21, option B).
tools/vocab/build.pyused to refuse a phrase whose two halves are both off by default. It now admits a partner that is off by default in the reading's own file, when the reading is off by default too. It still refuses:Each refusal has a mutation row. Option A, turning
sri's gated title on by default and narrowing hi.toml's exclusion, was declined: it changed the default to satisfy a tool rule. decisions/vocabulary-model records why.Lexicon and the choice.
Lexicon.addhas no such check and gets none: a phrase naming no title word compiles to nothing, which is harmless. Under a choice, the compile builds a phrase only from the title words the chosen pool holds._compiled.pyholds notan,sriorpuantitle.strict=Truewithmsreads both phrases too.Measured against master 488ea60
Run with
local_agreement.py --base(and--locale ms, which compares against master's pack),snapshot.py --local --base, andconfig_diff.py diff default plain:MSin each tree.locales.MSSERI,SRI, #1334) or a title off by default (HAJI)haji17,tun5,dato4, almost all outside Malaysiahaji30, mostly the honour typed into the forename boxCountry rows (MY, ID, SG) move by at most 0.1 point under the pack.
Accepted costs. The decisions entry records each one:
Encik Tun Yoke Wah,Haji A);Tan Sri Wahyuni;TanorSri(Hon. Tan Ah Kowgives title 'Hon. Tan');Tan Srialone gives title 'Tan');Datoof an Italian or Georgian name;title-or-namereport onTanandSri.Left out, per the brief:
Sri/Seriafter a head honour,Laks. Muda,Prof. Madya(Read a title phrase whose second word is not itself a title (آیت الله حسن رضاییgives givenآیت الله, whereآیتاللهwith a ZWNJ is the title) #1334);YB/YM/YA;TUDM/TLDM.Found and not changed: under the pack,
Dato' Ustaz Idrisreads family 'Idris', because the title run addresses asustazdoes (#1179's reading).Docs
attachesrow,locales/ms.py,languages.rst,locales.rstandmigrate.rst.Puan,CikandTuanread as salutations under a Malay choice? (Puan Hajah Ara binti Mohamedgives givenPuan) #1179's pack bullet.Checks
build.py --check: current.parity_check.py: 0 of 757 rows.Reviews
Hafiz,HajiandMaulanaopening a name read as titles under a Bengali or Urdu choice? (Hafiz Ahmed Khangives givenHafiz) #1469 line, two counts, a case note, the merged release bullet, names from private records), fixed in 81e3da8.🤖 Generated with Claude Code